package com.chrray.position.util.result;

import java.util.List;

/**
* Created by IntelliJ IDEA.
* @Author: Q
* @Created: 2020-07-16 17:38
* @Description:  分页数据
* @versions: 1.0
*/
public class PageBean<E> {
    /**
     * 总记录数
     */
    private long total;
    /**
     * 分页数据
     */
    private List<E> rows;

    public PageBean() {
    }

    public PageBean(long total, List<E> rows) {
        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<E> getRows() {
        return rows;
    }

    public void setRows(List<E> rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "total=" + total +
                ", rows=" + rows +
                '}';
    }
}
